<!--
 * @Author: your name
 * @Date: 2021-04-22 08:55:56
 * @LastEditTime: 2021-04-22 09:07:09
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \layuimini\page\index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="../css/bat.css">
  <style>
    #containers {
      width: 100%;
      height: 100%;
    }
  </style>
</head>

<body onLoad="onLoad()">
  <div id="containers"></div>
</body>

<!-- 引入地图api -->
<script type="text/javascript" src="http://api.tianditu.gov.cn/api?v=4.0&tk=cdb8fefafebb98d9e32ba598a956daa9"></script>
<script>
  var map;
  var zoom = 12;

  function onLoad() {
    map = new T.Map('containers');
    map.centerAndZoom(new T.LngLat(116.40769, 39.89945), zoom);
  }
</script>

</html>